package com.plusjun.search.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SearchParamVO {
    private String keyWord; // 页面传递的搜索关键字
    private Long catalog3Id; // 3级分类id
    /**
     * 只能有一个排序条件
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    private String sort; // 排序
    /**
     * 过滤条件
     * hasStock(是否有货):hasStock=0/1，默认有库存
     * skuPrice(价格区间):skuPrice=1_500/_500
     * brandId(可选多个品牌Id):brandId=1$brandId=2
     * catalog3Id
     * attrs(按照属性进行筛选)：attrs=1_aaa:bbb&attrs=2_c:d
     */
    private Integer hasStock;
    private String skuPrice;
    private List<Long> brandId;
    private List<String> attrs;
    private Integer pageNum = 1;//页码

    private String _queryString;

}
